import request from '@/utils/request';
// 获取bim列表
export function getList(query) {
    return request({
      url: '/heart/KingBom/list',
      method: 'get',
      params: query
    })
  }
  // 获取BOM版本列表
  export function getBomVersionList(data) {
    return request({   
      url: 'heart/KingBom/queryList',
      method: 'post',
      data
    })
  }
//   heart/Material/queryList?pageNo=1&pageSize=5&materialProperty=2&allowProduce=1
// 获取物料
export function getMaterial(query) {
    return request({
      url: '/heart/Material/queryList',
      method: 'get',
      params: query
    })
  }
  // bom列表 新增
export function addBOMList(data) {
    return request({
      url: '/heart/KingBom',
      method: 'post',
      data
    })
  }
// bom删除
  export function deleteBomList(query) {
    return request({
      url: '/heart/KingBom/' + query,
      method: 'delete',
    })
  }

//   获取盘盈盘亏列表/heart/KingProfitLoss/list
export function getProfitList(query) {
    return request({
      url: '/heart/KingProfitLoss/list',
      method: 'get',
      params: query
    })
  }
//   新增盈亏/heart/KingProfitLoss
export function addProfitList(data) {
    return request({
      url: '/heart/KingProfitLoss',
      method: 'post',
      data
    })
  }
//   删除/heart/KingProfitLoss/{ids}
export function deleteProfitList(query) {
    return request({
      url: '/heart/KingProfitLoss/' + query,
      method: 'delete',
    })
  }
//单据/heart/KingDocType/{id}
export function getKingDocTypeList(query) {
    return request({
      url: '/heart/KingDocType',
      method: 'get',
      params: query
    })
  }
//   组装拆卸 Assemble
// 获取组装列表
export function getAssembleList(query) {
    return request({
      url: '/heart/KingAssemble/list',
      method: 'get',
      params: query
    })
  }
//   新增 组装拆卸
export function addAssembleList(data) {
    return request({
      url: '/heart/KingAssemble',
      method: 'post',
      data
    })
  }
//   删除组装/heart/KingAssemble/{ids}
export function deleteAssembleList(query) {
    return request({
      url: '/heart/KingAssemble/' + query,
      method: 'delete',
    })
  }
  // 获取部门列表/system/dept/list
  export function getdeptList(query) {
    return request({
      url: '/system/dept/list',
      method: 'get',
      params: query
    })
  }
  // 获取物料信息列表/heart/Material/list

  export function getMaterialList(query) {
    return request({
      url: '/heart/Material/list',
      method: 'get',
      params: query
    })
  }
  // 获取计量单位/heart/KingBaseMeteringUnit/list
  export function getKingBaseMeteringUnitList(query) {
    return request({
      url: '/heart/KingBaseMeteringUnit/list',
      method: 'get',
      params: query
    })
  }
  // 获取仓库信息/heart/Warehouse/list
  export function getWarehouseList(query) {
    return request({
      url: '/heart/Warehouse/list',
      method: 'get',
      params: query
    })
  }
  // 获取货主列表/heart/KingBaseBusinessGroup/list  待定
  export function getKingBaseBusinessGroupList(query) {
    return request({
      url: '/heart/KingBaseBusinessGroup/list',
      method: 'get',
      params: query
    })
  }
  // 获取仓管员信息/system/user/list
  export function getKinguserList(query) {
    return request({
      url: '/system/user/list',
      method: 'get',
      params: query
    })
  }
 // /heart/KingBom/expand，BOM展开接口，

 export function getKingBomList(data) {
  return request({
    url: '/heart/KingBom/expand',
    method: 'post',
    data
  })
}
// 供应商/heart/Supplier/list
export function getSupplierList(query) {
  return request({
    url: '/heart/Supplier/list',
    method: 'get',
    params: query
  })
}
// 客户/heart/Customer/list
export function getCustomerList(query) {
  return request({
    url: '/heart/Customer/list',
    method: 'get',
    params: query
  })
}
// 即时库存 /heart/KingRealInventory/list
export function getKingRealInventoryList(query) {
  return request({
    url: '/heart/KingRealInventory/list',
    method: 'get',
    params: query
  })
}
// 获取仓位 /heart/region/list
export function getregionList(query) {
  return request({
    url: '/heart/region/list',
    method: 'get',
    params: query
  })
}
// 安全库存 /heart/MaxMinInventory/list
export function getMaxMinInventoryList(query) {
  return request({
    url: '/heart/MaxMinInventory/list',
    method: 'get',
    params: query
  })
}
// /heart/KingProfitLoss/{id} 盘盈详情
export function updataKingProfitLossList(query) {
  return request({
    url: `/heart/KingProfitLoss/${query}`,
    method: 'get'
  })
}
// /heart/KingBom/{id} BOM详情
export function updataKingBomList(query) {
  return request({
    url: `/heart/KingBom/${query}`,
    method: 'get'
  })
}
// 获取/heart/KingAssemble/{id} 组装拆卸详情
export function updataKingAssembleList(query) {
  return request({
    url: `/heart/KingAssemble/${query}`,
    method: 'get'
  })
}
// 修改盘ing盘亏/heart/KingProfitLoss
export function editKingProfitLossList(data) {
  return request({
    url: '/heart/KingProfitLoss',
    method: 'put',
    data
  })
}
// 修改BOM/heart/KingBom
export function editKingBomList(data) {
  return request({
    url: '/heart/KingBom',
    method: 'put',
    data
  })
}
// 修改组装拆卸//heart/KingAssemble
export function editKingAssembleList(data) {
  return request({
    url: '/heart/KingAssemble',
    method: 'put',
    data
  })
}
// 导出即时库存 /heart/KingRealInventory/export
export function KingRealInventoryList(query) {
  return request({
    url: `/heart/KingRealInventory/export`,
    method: 'get',
    params: query
  })
}
// 安全库存 新增 /heart/MaxMinInventory
export function AddMaxMinInventoryList(data) {
  return request({
    url: '/heart/MaxMinInventory',
    method: 'post',
    data
  })
}
// 安全库存 删除 /heart/MaxMinInventory/{ids}
export function deleteMaxMinInventory(query) {
  return request({
    url: '/heart/MaxMinInventory/' + query,
    method: 'delete',
  })
}
// 安全库存 修改/heart/MaxMinInventory
export function editMaxMinInventory(data) {
  return request({
    url: '/heart/MaxMinInventory',
    method: 'put',
    data
  })
}
// 安全库存详情 /heart/MaxMinInventory/{id}
export function SeeMaxMinInventory(query) {
  return request({
    url: `/heart/MaxMinInventory/${query}`,
    method: 'get'
  })
}
// 成本调整单 /heart/KingCostAdjustment/list
export function getKingCostAdjustmentList(query) {
  return request({
    url: '/heart/KingCostAdjustment/list',
    method: 'get',
    params: query
  })
}
// /heart/KingBadHandle/list 不良品处理单列表
export function getKingBadHandleList(query) {
  return request({
    url: '/heart/KingBadHandle/list',
    method: 'get',
    params: query
  })
}
// 检验单 /heart/KingCheck/list
export function getKingCheckList(query) {
  return request({
    url: '/heart/KingCheck/list',
    method: 'get',
    params: query
  })
}
// 价目表/heart/markenPrice/list
export function getmarkenPriceList(query) {
  return request({
    url: '/heart/markenPrice/list',
    method: 'get',
    params: query
  })
}
// 收款条件 /heart/KingBaseReceiptCondition/list
export function getKingBaseReceiptConditionList(query) {
  return request({
    url: '/heart/KingBaseReceiptCondition/list',
    method: 'get',
    params: query
  })
}
// 汇率类型 /heart/KingBaseExchangeRateType/list
export function getKingBaseExchangeRateTypeList(query) {
  return request({
    url: '/heart/KingBaseExchangeRateType/list',
    method: 'get',
    params: query
  })
}
// 结算方式 /heart/SettleTypeRemote/pull
export function getSettleTypeRemoteList(query) {
  return request({
    url: '/heart/KingBaseSettlementType/list',
    method: 'get',
    params: query
  })
}
// 收料通知单/heart/KingReceiveNotice/list
export function getKingReceiveNoticeList(query) {
  return request({
    url: '/heart/KingBaseSettlementType/list',
    method: 'get',
    params: query
  })
}
// 新增收料通知单/heart/KingReceiveNotice
export function addKingReceiveNoticeList(data) {
  return request({
    url: '/heart/KingReceiveNotice',
    method: 'post',
    data
  })
}
// 出库入库/heart/KingInventory/list
export function getKingInventoryList(query) {
  return request({
    url: '/heart/KingInventory/list',
    method: 'get',
    params: query
  })
}
// 删除出库入库/heart/KingInventory/{ids}
export function deleteKingInventory(query) {
  return request({
    url: '/heart/KingInventory/' + query,
    method: 'delete',
  })
}
// 新增入库/heart/KingInventory
export function addKingInventoryList(data) {
  return request({
    url: '/heart/KingInventory',
    method: 'post',
    data
  })
}
// 新增出库/heart/KingInventory/saveSaleKingInventory
export function addsaveSaleKingInventoryList(data) {
  return request({
    url: '/heart/KingInventory/saveSaleKingInventory',
    method: 'post',
    data
  })
}
// 修改出库入库/heart/KingInventory
export function editKingInventory(data) {
  return request({
    url: '/heart/KingInventory',
    method: 'put',
    data
  })
}
// 导出出库入库/heart/KingInventory/export
export function KingKingInventoryList(query) {
  return request({
    url: `/heart/KingInventory/export`,
    method: 'get',
    params: query
  })
}
// 获取出库如库详情/heart/KingInventory/{id}
export function SeeKingInventory(query) {
  return request({
    url: `/heart/KingInventory/${query}`,
    method: 'get'
  })
}
// 单据类型/heart/KingDocType/list
export function getKingDocTypeList1(query) {
  return request({
    url: '/heart/KingDocType/list',
    method: 'get',
    params: query
  })
}
// 供货商联系人
// /heart/SupplierContacts/list
export function getSupplierContactsList(query) {
  return request({
    url: '/heart/SupplierContacts/list',
    method: 'get',
    params: query
  })
}
// 库存状态/heart/KingInventoryStatus/list
export function getKingInventoryStatusList(query) {
  return request({
    url: '/heart/KingInventoryStatus/list',
    method: 'get',
    params: query
  })
}